package com.nsu.cl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 班级表
 * @TableName clazz
 */
@TableName(value ="clazz")
@Data
public class Clazz implements Serializable {
    /**
     * 班级ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 班级名称
     */
    private String name;

    /**
     * 班主任
     */
    private Integer teacherId;

    /**
     * 年级ID
     */
    private Integer gradeId;

    /**
     * 班级简介
     */
    private String introducation;

    /**
     * 老师实体
     */
    @TableField(exist = false)
    private Teacher teacher;

    /**
     * 年级实体
     */
    @TableField(exist = false)
    private Grade grade;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}